﻿using System;
using System.Collections.Generic;

namespace Devv.FreshTracker.Entity
{
	[Serializable]
	public class TaskCollection : List<Task>
	{
		#region Helpers

		public Task Find(Int32 id)
		{
			foreach (Task t in this)
			{
				if (t.Id == id)
				{
					return t;
				}
			}

			return null;
		}

		#endregion
	}
}